<template>
<!-- 底部导航 -->
  <van-tabbar v-model="active" :route="true" @change="changeFn">
    <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
    <van-tabbar-item icon="label-o" to="/topic">专题</van-tabbar-item>
    <van-tabbar-item icon="apps-o" to="/cargory">分类</van-tabbar-item>
    <van-tabbar-item icon="cart-o" to="/car">购物车</van-tabbar-item>
    <van-tabbar-item icon="friends-o" to="/user">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script>
export default {
  name: "",
  props:[],
  data() {
    return {
      active: 0,
    };
  },
  methods: {
    changeFn(active) {
      // console.log(active);
      this.active = active;
    },
    created(){
      
    }
  },
};
</script>

<style>
</style>